package server.response;

import protocol.AbstractPacket;

import java.util.List;

import static protocol.Command.CREATE_GROUP_RESPONSE;

/**
 * @Description 客户端发送创建群聊请求后，服务器返回创建群聊响应
 * @author 14548
 */
public class CreateGroupResponseMessage extends AbstractPacket {
    private boolean success;
    private int groupId;
    private List<String> userNameList;

    public CreateGroupResponseMessage(boolean success, int groupId, List<String> userNameList) {
        this.success = success;
        this.groupId = groupId;
        this.userNameList = userNameList;
    }

    public boolean isSuccess() {
        return success;
    }

    public int getGroupId() {
        return groupId;
    }

    public List<String> getUserNameList() {
        return userNameList;
    }

    @Override
    public Byte getCommand() {
        return CREATE_GROUP_RESPONSE;
    }
}
